#pragma once
#include "circuitunitdisobj.h"
#include "dcl_InterfaceCircuit.h"
#define STR_NAME2VALUE "---"
#define STR_FIELDS "###"
class CCircuitPart;
class DEF_INTERFACECIRCUIT CCircuitPartDisObj :
	public CCircuitUnitDisObj
{
public:
	CCircuitPartDisObj(CCircuitPart *pCircuitPart);
	CCircuitPartDisObj(const CCircuitPartDisObj *pDisObj, CCircuitPart *pCircuitPart=NULL);
	~CCircuitPartDisObj(void);

public:
	virtual void Serialize(CArchive & ar);
	virtual void Display(CHoopsMap *pHoopsMap);
	virtual void Transform(const CMatrix transf);
	virtual CObj * Clone() const;
	virtual bool GetBox(double & dblLeft, double & dblBottom, double & dblRight, double & dblTop) const;
	virtual eCircuitUnitType GetCircuitUnitType() const;
	virtual void DeleteAllObjFromHoopsMap(CHoopsMap *pHoopsMap);
public:
	void DisplayPartDesignator(CPartDesignator *pInfo );
	void MirrorPart(bool isY = TRUE);

	CPos GetConnectPos( int pinIndex );

};

